package com.二叉树.静态二叉树;


public class TreeNode {
    //左节点
    private TreeNode leftTreeNode;
    //右节点
    private TreeNode rightNode;
    //数据
    private String value;

    public TreeNode getLeftTreeNode() {
        return leftTreeNode;
    }

    public void setLeftTreeNode(TreeNode leftTreeNode) {
        this.leftTreeNode = leftTreeNode;
    }

    public TreeNode getRightNode() {
        return rightNode;
    }

    public void setRightNode(TreeNode rightNode) {
        this.rightNode = rightNode;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public TreeNode(String value){
        this.value = value;
    }
}
